package Si.Assign1.Model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;


public class CreditCards 
{
	public CreditCards(){}

	/*
	 * Properties
	 */
	
	/*
	 * Set and get id
	 */
	public int getId()
	{	return id;    }
	public void setId(int id)
	{   this.id = id;  }

	/*
	 * Set and get card_number
	 */
	public String getCardNumber()
	{   return cardNumber;  }
	public void setCardNumber(String cardNumber)
	{   this.cardNumber = cardNumber;  }
	
	/*
	 * Set and get cardholder_name
	 */
	public String getCardholderName()
	{	return cardholderName;  }
	public void setCardholderName(String cardholderName)
	{   this.cardholderName = cardholderName; }
	
	/*
	 * Set and get security
	 */
	public String getSecurity()
	{	return security;  }
	public void setSecurity(String security)
	{   this.security = security;  }
	
	/*
	 * Set and get customer_id
	 */
	public int getCustomerId()
	{	return customerId;    }
	public void setCustomerId(int customerId)
	{   this.customerId =  customerId;  }
	
	/*
	 * Set and get billing_address
	 */
	public int getBillingAddress()
	{	return billingAddress;   }
	public void setBillingAddress(int billingAddress)
	{   this.billingAddress = billingAddress; }

	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Basic(optional=false)
	@Column(name="id", nullable=false)
	private int id;
	@Column(name="card_number", length = 16, nullable=false)
	private String cardNumber;
	@Column(name="cardholder_name", length = 3994, nullable=false)
	private String cardholderName;
	@Column(name="security", length = 16, nullable=true)
	private String security;
	@Column(name="billing_address", nullable=true)
	private int billingAddress;
	@Column(name="customer_id", nullable=true)
	private int customerId;
	
}
